package com.zdkj.edge.door.demo.callback.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;

import java.io.Serializable;

/**
 * 描述: 边端授权信息
 *
 * @author ZlTan
 * @date 2025/04/08 14:52
 */
@Data
@Builder
public class AuthorizeInfo implements Serializable {
    private static final long serialVersionUID = 3747855697186995407L;

    //门禁点编码
    private String mjdId;
    //门禁点名称
    private String mjdName;
    //授权开始时间
    private String startTime;
    //授权结束时间
    private String endTime;
    //人员身份证号
    private String userIdCard;
    //人脸照片
    private String photo;
    //车牌号
    private String cphnbsht;
    //门禁类型(1.门禁;2.道闸)
    private Integer mjTyp;
    //工号
    private String usrCod;
    //手机号
    private String phone;

    @Getter
    @AllArgsConstructor
    public enum MjTyp {
        PERSON(1, "门禁人员授权"),
        VEHICLE(2, "道闸车辆授权");
        private final Integer code;
        private final String desc;
    }

}
